<%-- 
    Document   : error
    Created on : 31/07/2008, 05:50:04 PM
    Author     : LIZARDO RIOS
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page isErrorPage="true" session="true" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="../../css/admin_1.css" rel="stylesheet" type="text/css" />
        <link href="../../css/alumno.css" rel="stylesheet" type="text/css" />
        <title>Error!</title>
        <%@taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
        <%
            String from = (String) request.getParameter("from");
            from = (from == null) ? "Nnguna" : from;
        %>
        
    </head>
    <body>

        <c:if test="${!session.s_codigo_persona}">
            Su Sesion a Expirado por favor haga click <a href="/SistemaWebAGB_2.0/ServletSesion?accion=cerrarSesion">Aqui</a> para volver a Loguearse
        </c:if>
        <c:if test="${session.s_codigo_persona}">
             <br>
        Un error ocurrido en la p&aacute;gina: <b><%= from%></b>
        <i>
            La excepcion ocurrida:
            <br><br>
            <table width="100%" border="1" cellpadding="2" cellspacing="0">
                <tr>
                    <td align="right">Localizado: </td>
                    <td><font color="red"><b>${exception.localizedMessage}</b></font></td>
                </tr>
                <tr>
                    <td align="right">Causa: </td>
                    <td><font color="red"><b>${exception.getMessage}</b></font></td>
                </tr>
                <tr>
                    <td align="right">Mensaje: </td>
                    <td><font color="red"><b><${exception.toString}</b></font></td>
                </tr>
            </table>
        </i>
        <!-- Enviar el error al administrador -->
        <% System.out.println(exception.toString());%>
        <br><br>
        <a href="javascript:window.history.back()">Retornar</a>
        </c:if>

       
    </body>
</html>
